﻿using SqlSugar;

namespace WebAssistant.BusinessLogic.Model
{
    [SugarTable("tax")]
    public class Tax
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "tax_id")]
        public int TaxId { get; set; }


        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 结算单上的标签
        /// </summary>
        [SugarColumn(ColumnName = "description", IsNullable = true)]
        public string Description { get; set; }

        /// <summary>
        /// 税种
        /// </summary>
        [SugarColumn(ColumnName = "type_tax_use")]
        public string TypeTaxUse { get; set; }

        [SugarColumn(ColumnName = "company_id")]
        public long CompanyId { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [SugarColumn(ColumnName = "amount")]
        public double Amount { get; set; }

        /// <summary>
        ///顺 序
        /// </summary>
        [SugarColumn(ColumnName = "sequence")]
        public int Sequence { get; set; }

        /// <summary>
        /// 税组
        /// </summary>
        [SugarColumn(ColumnName = "tax_group_id")]
        public int TaxGroupId { get; set; }
    }
}
